<?php
include("../inc/Function.php");
if($_SESSION['a']['alevel']!=5 && $power['lylb']!=1){
	echo "<script>alert('权限不足');window.location.href='index.php';</script>";exit;
}
$mid = isset($_GET['mid'])?$_GET['mid']:0;
$info = message($mid);
if(!$info){
    echo "<script>window.location.href='messagelist.php';</script>";exit;    
}
$tpl->assign("info",$info);
$tpl->assign("mid",$mid);
$tpl->show("message");
?>